package com.ruoyi.system.mapper;

import java.util.List;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.system.domain.DataScreeningPersonnel;
import com.ruoyi.system.domain.dto.SysOrderResponseDTO;
import com.ruoyi.system.domain.vo.req.personne.PersonneQueryReqVo;
import com.ruoyi.system.domain.vo.resp.UserInfoRespVo;
import com.ruoyi.system.domain.vo.resp.personne.PersonneInfoRespVo;
import com.ruoyi.system.domain.vo.resp.personne.PersonneListRespVo;
import com.ruoyi.system.domain.vo.resp.personne.PersonneUavInfoRespVo;
import org.apache.ibatis.annotations.Param;

/**
 * 被排查人员Mapper接口
 * 
 * @author ruoyi
 * @date 2024-06-25
 */
public interface DataScreeningPersonnelMapper extends BaseMapper<DataScreeningPersonnel>
{
    /**
     * 查询被排查人员
     * 
     * @param screeningPersonnelId 被排查人员主键
     * @return 被排查人员
     */
    public DataScreeningPersonnel selectDataScreeningPersonnelByScreeningPersonnelId(Long screeningPersonnelId);

    /**
     * 查询被排查人员列表
     * 
     * @param dataScreeningPersonnel 被排查人员
     * @return 被排查人员集合
     */
    public List<DataScreeningPersonnel> selectDataScreeningPersonnelList(DataScreeningPersonnel dataScreeningPersonnel);

    /**
     * 新增被排查人员
     * 
     * @param dataScreeningPersonnel 被排查人员
     * @return 结果
     */
    public int insertDataScreeningPersonnel(DataScreeningPersonnel dataScreeningPersonnel);

    /**
     * 修改被排查人员
     * 
     * @param dataScreeningPersonnel 被排查人员
     * @return 结果
     */
    public int updateDataScreeningPersonnel(DataScreeningPersonnel dataScreeningPersonnel);

    /**
     * 删除被排查人员
     * 
     * @param screeningPersonnelId 被排查人员主键
     * @return 结果
     */
    public int deleteDataScreeningPersonnelByScreeningPersonnelId(Long screeningPersonnelId);

    /**
     * 批量删除被排查人员
     * 
     * @param screeningPersonnelIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteDataScreeningPersonnelByScreeningPersonnelIds(Long[] screeningPersonnelIds);

    List<PersonneListRespVo> selectPersonneList(@Param("req") PersonneQueryReqVo req);

    PersonneInfoRespVo selectPersonneListById(@Param("screeningPersonnelId") Long screeningPersonnelId);

    List<PersonneUavInfoRespVo> selectUavListById(@Param("screeningPersonnelId") Long screeningPersonnelId);

    Integer selectPersonneCensusRegisterPeoList(@Param("userPost")UserInfoRespVo userPost);

    Integer selectUavSum(@Param("userPost") UserInfoRespVo userPost, @Param("personnelType")Integer personnelType);

    Integer selectUavAvgCount(@Param("deptId")Long deptId,@Param("personnelType")Integer personnelType);

    List<PersonneListRespVo> selectPersonneResidentoList(@Param("userPost")UserInfoRespVo userPost);

    List<SysOrderResponseDTO> selectpersonneListByDeptId(Integer zoneDeptId);
}
